package com.bjsxt.shop.orders.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.bjsxt.shop.system.pojo.APay;
import com.bjsxt.shop.users.pojo.AUsers;
import com.bjsxt.shop.users.pojo.AUsersAddress;

/**
 * 订单POJO
 * 
 * @author wangshSxt
 *
 */
public class AOrders
{
	private int id;
	private int usersId;
	private int addressId;
	private int payId;
	private int regionId;
	private String contact;
	private String phone;
	private String address;
	private String zipCode;
	private byte dispatch;
	private String dispatchSn;
	private String paySn;
	private double totalWeight;
	private double totalPrice;
	private double freightPrice;
	private double price;
	private String note;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;

	/* 关联对象 */
	private AUsers users;
	private AUsersAddress usersAddress;
	private APay pay;

	private List<AOrdersGoods> ordersGoodList = new ArrayList<AOrdersGoods>();
	private List<AOrdersHistory> ordersHistoryList = new ArrayList<AOrdersHistory>();

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public int getUsersId()
	{
		return usersId;
	}

	public void setUsersId(int usersId)
	{
		this.usersId = usersId;
	}

	public int getAddressId()
	{
		return addressId;
	}

	public void setAddressId(int addressId)
	{
		this.addressId = addressId;
	}

	public int getPayId()
	{
		return payId;
	}

	public void setPayId(int payId)
	{
		this.payId = payId;
	}

	public int getRegionId()
	{
		return regionId;
	}

	public void setRegionId(int regionId)
	{
		this.regionId = regionId;
	}

	public String getContact()
	{
		return contact;
	}

	public void setContact(String contact)
	{
		this.contact = contact;
	}

	public String getPhone()
	{
		return phone;
	}

	public void setPhone(String phone)
	{
		this.phone = phone;
	}

	public String getAddress()
	{
		return address;
	}

	public void setAddress(String address)
	{
		this.address = address;
	}

	public String getZipCode()
	{
		return zipCode;
	}

	public void setZipCode(String zipCode)
	{
		this.zipCode = zipCode;
	}

	public byte getDispatch()
	{
		return dispatch;
	}

	public void setDispatch(byte dispatch)
	{
		this.dispatch = dispatch;
	}

	public String getDispatchSn()
	{
		return dispatchSn;
	}

	public void setDispatchSn(String dispatchSn)
	{
		this.dispatchSn = dispatchSn;
	}

	public String getPaySn()
	{
		return paySn;
	}

	public void setPaySn(String paySn)
	{
		this.paySn = paySn;
	}

	public double getTotalPrice()
	{
		return totalPrice;
	}

	public void setTotalPrice(double totalPrice)
	{
		this.totalPrice = totalPrice;
	}

	public double getPrice()
	{
		return price;
	}

	public void setPrice(double price)
	{
		this.price = price;
	}

	public String getNote()
	{
		return note;
	}

	public void setNote(String note)
	{
		this.note = note;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public Date getPubTime()
	{
		return pubTime;
	}

	public void setPubTime(Date pubTime)
	{
		this.pubTime = pubTime;
	}

	public AUsers getUsers()
	{
		return users;
	}

	public void setUsers(AUsers users)
	{
		this.users = users;
	}

	public AUsersAddress getUsersAddress()
	{
		return usersAddress;
	}

	public void setUsersAddress(AUsersAddress usersAddress)
	{
		this.usersAddress = usersAddress;
	}

	public APay getPay()
	{
		return pay;
	}

	public void setPay(APay pay)
	{
		this.pay = pay;
	}

	public List<AOrdersGoods> getOrdersGoodList()
	{
		return ordersGoodList;
	}

	public void setOrdersGoodList(List<AOrdersGoods> ordersGoodList)
	{
		this.ordersGoodList = ordersGoodList;
	}

	public List<AOrdersHistory> getOrdersHistoryList()
	{
		return ordersHistoryList;
	}

	public void setOrdersHistoryList(List<AOrdersHistory> ordersHistoryList)
	{
		this.ordersHistoryList = ordersHistoryList;
	}

	public double getTotalWeight()
	{
		return totalWeight;
	}

	public void setTotalWeight(double totalWeight)
	{
		this.totalWeight = totalWeight;
	}

	public double getFreightPrice()
	{
		return freightPrice;
	}

	public void setFreightPrice(double freightPrice)
	{
		this.freightPrice = freightPrice;
	}
}
